# -------------类的装饰器-----------------
'''一切皆对象'''
def deco(obj):
    print("------------->",obj)
    obj.x = 1
    obj.y = 2
    obj.z = 3
    return obj

@deco
def AA():
    pass
print("函数的装饰器:",AA.__dict__)

@deco
class FOO:
    pass
print("类的装饰器:",FOO.__dict__)
